package com.timk.goserver.client.model;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Player-specific invite info
 * @author TKington
 *
 */
public class InvitePlayerInfo implements IsSerializable {
	private int invitePlayerInfoId;
	private String name;
	private boolean accepted;
	
	/**
	 * Just for hibernate/serialization
	 *
	 */
	public InvitePlayerInfo() { /* */ }
	
	/**
	 * Creates an InvitePlayerInfo
	 * @param name the player name
	 */
	public InvitePlayerInfo(String name) {
		this.name = name;
	}
	
	/**
	 * Returns true if this player has accepted the invite
	 * @return true if this player has accepted the invite
	 */
	public boolean isAccepted() {
		return accepted;
	}
	
	/**
	 * Sets whether this player has accepted the invite
	 * @param accepted
	 */
	public void setAccepted(boolean accepted) {
		this.accepted = accepted;
	}
	
	/**
	 * Returns the player's name
	 * @return the player's name
	 */
	public String getName() {
		return name;
	}
	
	/**
	 * Sets the player's name
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}
	
	int getInvitePlayerInfoId() {
		return invitePlayerInfoId;
	}
	
	void setInvitePlayerInfoId(int invitePlayerInfoId) {
		this.invitePlayerInfoId = invitePlayerInfoId;
	}
}
